import React from 'react';
import { Route, Routes } from "react-router-dom";
// import './App.css'

// 1.导入router实例对象
import router from "./router";
import Layout from "./pages/layout/Layout.jsx";
import Home from "./pages/home/Home.jsx";
import Manager from "./pages/manager/Manager.jsx";
import Login from "./pages/login/Login.jsx";
import UserCenter from "./pages/person/UserCenter.jsx";

const App = () => {
    return (
        <Routes>
            <Route path="/" element={<Layout />}>
                <Route index element={<Home />} />
                <Route path="home" element={<Home />} />
                <Route path="manager" element={<Manager />} />
                <Route path="userCenter" element={<UserCenter />} />
            </Route>
            <Route path="login" element={<Login />} />
        </Routes>
    );
};
export default App;